package info.lumanman.switchdatabase.controller;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import info.lumanman.switchdatabase.one.entry.User;
import info.lumanman.switchdatabase.service.UserService;

public class UserController {

	
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		UserService dataSource1Service = (UserService) ac.getBean("userService");
		
		User user=new User();
		user.setfDescription("q11");
		user.setfId("q22");
		user.setfName("q33");
		user.setfNumber("q44");
		dataSource1Service.saveUser(user);
		
	}
}
